import { Global, Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { LogEntity } from './entities/log.entity';
import { LogService } from './services/log.service';
import { UserActivityLogEntity } from './entities/user-activity-log.entity';
import { UserActivityLogService } from './services/user-activity-log.service';
import { LogAdminController } from './controllers/system/log.admin.controller';
import { UserActivityLogAdminController } from './controllers/user-activity/user-activity-log.admin.controller';

@Global()
@Module({
  imports: [TypeOrmModule.forFeature([LogEntity, UserActivityLogEntity])],
  controllers: [LogAdminController, UserActivityLogAdminController],
  providers: [LogService, UserActivityLogService],
  exports: [LogService, UserActivityLogService]
})
export class LogModule {}
